package demo2;

import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要查询电脑的id");
        Movie[] movies = new Movie[4];
        movies[0] = new Movie(1,"水门桥", 38.9,"12万人想看");
        movies[1] = new Movie(2, "出拳吧", 39,"3.5万人想看");
        movies[2] = new Movie(3,"月球陨落", 42,"17.9万人想看");
        movies[3] = new Movie(4,"一点就到家", 35,"10.8万人想看");
        MovieOperate m = new MovieOperate(movies);
        int command = sc.nextInt();
        m.searchMovieById(command);
    }
}
